package com.hongyun.tms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hongyun.tms.common.PageResponseDto;
import com.hongyun.tms.common.dto.prodconsume.ProdConsumeQueryDto;
import com.hongyun.tms.common.dto.prodconsume.ProdConsumeSaveReqDto;
import com.hongyun.tms.common.vo.ProdConsumeVO;
import com.hongyun.tms.entity.ProdConsume;

import java.util.List;

/**
 * <p>
 * 作业计划 服务类
 * </p>
 *
 * @author liPeng
 * @since 2024-06-12
 */
public interface IProdConsumeService extends IService<ProdConsume> {

    /**
     * 与V1的区别是，加了个tugId，筛选，直接改成sql语句查询了
     *
     * @param query query
     * @return page
     */
    PageResponseDto<ProdConsumeVO> treeList(ProdConsumeQueryDto query);

    ProdConsumeVO detail(Long id);
     void saveAndUpdate(ProdConsumeSaveReqDto dto);

    List<ProdConsumeVO> export(ProdConsumeQueryDto query);
}
